
import request from '@/utils/request'

export function listData(query) {
  return request({
    url: `/reward/item/list${query}`,
    method: 'get',
  })
}

export function listTypeData(query) {
    return request({
      url: `/reward/detail/type/list${query}`,
      method: 'get',
    })
  }

  export function putData(form) {
    return request({
      url: `/reward/item/update`,
      method: 'put',
      data:form
    })
  }

  export function deleteData(form) {
    return request({
      url: `/reward/item/del`,
      method: 'put',
      data:form
    })
  }

  export function listSelectData() {
    return request({
      url: `/user-manager/user-gift-bag/select/list`,
      method: 'get',
    });
  }
  
  export function listSpecialData(form) {
    return request({
      url:`/mall/mall_product_list`,
      method:'post',
      data:form
    })
  }

  export function listGiftData(form) {
    return request({
      url:`/gift/list`,
      method:'post',
      data:form
    })
  }